<?php
include("include/fn.php");
include("include/db.php");

$FirstName=check_input($_POST['FirstName']);
$LastName=check_input($_POST['LastName']);
$Email=$_POST["Email"];
$Password=$_POST["Password"];
$Company=check_input($_POST['Company']);
$Street=check_input($_POST['Street']);
$Street2=check_input($_POST['Street2']);
$City=check_input($_POST['City']);
$State=check_input($_POST['State']);
$Zip=$_POST["Zip"];
$Country=$_POST["Country"];
$Phone=$_POST["Phone"];
$Phone2=$_POST["Phone2"];
$Fax=$_POST["Fax"];
$AuthAllowed=$_POST["AuthAllowed"];
$GroupName=$_POST["GroupName"];

$sql="INSERT INTO vnf_customer(LastName,FirstName,Email,Password,Status,Company,Street,Street2,City,State,Zip,Country,Phone,Phone2,Fax,AuthAllowed,GroupName)
VALUES
($LastName,$FirstName,'$Email','$Password',1,$Company,$Street,$Street2,$City,$State,'$Zip','$Country','$Phone','$Phone2','$Fax','$AuthAllowed','$GroupName')";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
mysql_close($con);
header('Location: customer_list.php');


 ?>


<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">


<title>New Page 1</title>
</head>

<body>



</body>

</html>
